.animation-style {
  background-color: #9E9E9E;
  color: #000;
  border: 0px solid #000;
  padding: 6px 24px;
  border-radius: 20px;
}

.animation-act {
  // animation-play-state: paused;
  animation-name: runbgcolor;
  transition-property: all;
  animation-duration: .8s;
  animation-iteration-count: infinite;
  transition-timing-function: ease;
}

.box1 {
  // background-image: url(./image/雪人.jpg);
  height: 180px;
  width: 123px;
  margin: 0 auto;
  animation-name: runbgcolor;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(4);

}


.canvas {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #fafafa;
  overflow: hidden;
}

.drawing-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  /* 不干扰鼠标点击 */
}

.distance-info {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 14px;
}

.reset-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.reset-btn:hover {
  background: #096dd9;
}

/* 点标记的文本避免重叠 */
text {
  white-space: nowrap;
}

@keyframes runbgcolor {
  from {
    // background-position: 0 0;
    // margin-left: 0px;
    color: #fff;
    background-color: #607D8B;
  }

  to {
    // background-position: -487px 0;
    // margin-left: 100px;
    color: #fff;
    background-color: #4CAF50;
  }

}